﻿
namespace YY.Admin.Services.Service.Auth
{
    public interface ISysAuthService
    {
        Task<LoginOutput> LoginAsync(LoginInput request);
        void LogoutAsync();
        Task<bool> IsAuthenticatedAsync();
        bool ValidateToken(string accessToken);
        Task RefreshToken(string? accessToken);
        SysUser? CurrentUser { get; }
        event EventHandler<SysUser?> UserChanged;

        Task UpdateUserLoginInfoAsync(SysUser sysUser);
    }
}
